home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Events / Event Classes / Event.h < prev    next >
Text File  |  1997-06-28  |  494b  |  30 lines

  1. // Event.h
  2.  
  3. #ifndef Event_h
  4. #define Event_h
  5.  
  6. #ifndef Tick_h
  7. #include "Tick.h"
  8. #endif
  9.  
  10. class Event
  11.   {
  12.     private:
  13.         const EventRecord asReceived;
  14.         static Tick when;
  15.  
  16.     public:
  17.         Event( const EventRecord& event );
  18.  
  19.         static Tick When()                                    { return when; }
  20.         
  21.         const EventRecord& AsReceived() const            { return asReceived; }
  22.         
  23.         virtual bool CanAppend() const                    { return 0; }
  24.         virtual bool Append( const EventRecord& )        { return 0; }
  25.         
  26.         virtual void Respond() const                        {}
  27.   };
  28.  
  29. #endif
  30.